
	/**
	 * Tune EXTJS 
	**/
	Ext.Panel.prototype.shadow        = false;
	Ext.Panel.prototype.animCollapse  = false;
	Ext.Tip.prototype.shadow          = false;
	Ext.Tip.prototype.floating.shadow = false;
	Ext.grid.GridPanel.trackMouseOver = false;

	Ext.BLANK_IMAGE_URL = "";
	
	Ext.state.Manager.setProvider( new Ext.state.CookieProvider() );
	
	Ext.MessageBox.buttonText.ok = { 
		text    : "Ok", 
		cls     : "x-btn-size-28 w_100 x-btn-text-icon", 
		iconCls : "icon_action_ok" 
	};
	
	Ext.MessageBox.buttonText.cancel = { 
		text    : "Cancel", 
		cls     : "x-btn-size-28 w_100 x-btn-text-icon", 
		iconCls : "icon_action_cancel" 
	};
	
	Ext.MessageBox.buttonText.yes = { 
		text    : "Yes", 
		cls     : "x-btn-size-28 w_100 x-btn-text-icon", 
		iconCls : "icon_yes" 
	};
	
	Ext.MessageBox.buttonText.no = { 
		text    : "No", 
		cls     : "x-btn-size-28 w_100 x-btn-text-icon", 
		iconCls : "icon_no" 
	};
	
	
	Ext.QuickTips.init();
	Ext.QuickTips.enable();
	
	Date.monthNames = [
	  "January",
	  "February",
	  "March",
	  "April",
	  "May",
	  "June",
	  "July",
	  "August",
	  "September",
	  "October",
	  "November",
	  "December"
	];
	
	Date.getShortMonthName = function(month) {
	  return Date.monthNames[month].substring(0, 3);
	};
	
	Date.monthNumbers = {
	  Jan : 0,
	  Feb : 1,
	  Mar : 2,
	  Apr : 3,
	  May : 4,
	  Jun : 5,
	  Jul : 6,
	  Aug : 7,
	  Sep : 8,
	  Oct : 9,
	  Nov : 10,
	  Dec : 11
	};
	
	Date.getMonthNumber = function(name) {
		
		return Date.monthNumbers[
			name.substring(0, 1).toUpperCase() + 
			name.substring(1, 3).toLowerCase()
		];
		
	};
	
	Date.dayNames = [
	  "Sunday",
	  "Monday",
	  "Tuesday",
	  "Wednesday",
	  "Thursday",
	  "Friday",
	  "Saturday"
	];
	
	Date.getShortDayName = function(day) {
		return Date.dayNames[day].substring(0, 3);
	};
	
	/**
	 * Make ExtJS window be resized on low resolutions.
	**/	
	Ext.override(Ext.Window, {
	
		initComponent : function() {
        	
			Ext.Window.superclass.initComponent.call(this);
			
			var me = this;
			
			var _fe = function() {

				var sizes = {
					
					"body" : Ext.getBody().getSize(),
					"me"   : me.getEl().getSize()
					
				};
				
				if( sizes.me.width >= (sizes.body.width - 10) ) {

					me.getEl().setStyle("overflow-x", "auto");
					me.body.findParentNode("div").setStyle("overflow-x", "auto");
					me.body.setStyle("overflow-x", "auto");
					me.getEl().setWidth( sizes.body.width - 25 );
					me.center();
					
				}	// if
				
				if( sizes.me.height >= (sizes.body.height - 10) ) {
				
					me.getEl().setStyle("overflow-y", "auto");
					
					Ext.get( me.body.findParentNode("div") ).setStyle("overflow-y", "auto");
					me.body.setStyle("overflow-y", "auto");
					me.getEl().setHeight( sizes.body.height - 25 );
					me.center();
					
				}	// if
				
			};
			
			Ext.EventManager.onWindowResize(_fe);
			me.on("resize", _fe);
			me.on("show", _fe);
			
			Ext.EventManager.onWindowResize( function() {
				
				me.center();
				
			});
			
		}
		
	});
	